package com.cong.design;

/**
 * @author cong
 * <p>
 * created on 2021/3/31 下午3:11
 */
public class AdapterDemo {

    /**
     *  适配器模式
     * @param args
     */
    public static void main(String[] args) {
        WildTurkey turkey = new WildTurkey();
        Duck duck = new TrukeyAdapter(turkey);
        duck.quack();
    }
}
